package com.nageoffer.shortlink.project.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.nageoffer.shortlink.project.dao.entity.ShortLinkDO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinRecoverReqDTO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinRemoveReqDTO;
import com.nageoffer.shortlink.project.dto.req.RecycleBinSaveReqDTO;
import com.nageoffer.shortlink.project.dto.resp.ShortLinkPageRespDTO;

/**
 * ClassName: RecycleBinService
 * Package: com.nageoffer.shortlink.project.service
 * Description:
 *
 * @Author Jetson
 * @Create 2024/10/23 18:46
 * @Version 1.0
 */
public interface RecycleBinService extends IService<ShortLinkDO> {
    /**
     * 回收站保存
     */
    void saveRecycleBin(RecycleBinSaveReqDTO requestParam);

    /**
     * 回收站分页查询
     */
    IPage<ShortLinkPageRespDTO> pageShortLink(String gid, Long current, Long size);

    /**
     * 恢复短链接
     */
    void recoverRecycleBin(RecycleBinRecoverReqDTO requestparam);

    /**
     * 移除短链接
     */
    void removeRecycleBin(RecycleBinRemoveReqDTO requestParam);
}
